package com.cskaoyan.mapper;

import com.cskaoyan.bean.MarketOrder;
import com.cskaoyan.bean.MarketOrderExample;
import com.cskaoyan.bean.chenfeng.vo.StatOrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketOrderMapper {
    long countByExample(MarketOrderExample example);

    int deleteByExample(MarketOrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketOrder record);

    int insertSelective(MarketOrder record);

    List<MarketOrder> selectByExample(MarketOrderExample example);

    MarketOrder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketOrder record, @Param("example") MarketOrderExample example);

    int updateByExample(@Param("record") MarketOrder record, @Param("example") MarketOrderExample example);

    int updateByPrimaryKeySelective(MarketOrder record);

    int updateByPrimaryKey(MarketOrder record);

    // 查询统计订单信息
    List<StatOrderVo.RowsEntity> selectOrderInGroupByDate(@Param("sort") String sort, @Param("order") String order, @Param("limit") Integer limit);

    String selectAdminCommentById(Integer commentId);

    void UpdateAdminCommentById(@Param("commentId") Integer commentId,@Param("content") String content);

    void updateCommentByOrderId(Integer orderId);

    Integer selectUserIdByOrderId(Integer orderId);

    void updateOrdersnByOrderId(Integer id);
}